package com.starbaba.util;

import java.util.ArrayList;

import org.apache.http.message.BasicNameValuePair;

import com.starbaba.common.HttpConnection;

public class SearchService {
	private final static String ADDRESS = "http://xmiles.cn/search_service/";
//	private final static String ADDRESS = "http://192.168.199.199:8080/search_service/";
	
	
	public static void updateGroupBuying(String id)
	{
		String servletName = "index/saveOrUpdate";
		ArrayList<BasicNameValuePair> list = new ArrayList<BasicNameValuePair>();
//		list.add(new BasicNameValuePair("busiType", "19"));
//		list.add(new BasicNameValuePair("id", id));
		String url = ADDRESS + servletName + "?busiType=19&id=" + id;
		HttpConnection.connection(url, HttpConnection.GET, list);
	}

}
